﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for BLL
/// </summary>
public class BLL
{
	public BLL()
	{
		//
		// TODO: Add constructor logic here
		//
	}
    public string TaoMaAuto(string chuoidau, string chuoigiua, int idmax)
    {
        string idmaxstr = idmax.ToString();
        string chuoilucdau = chuoigiua + idmaxstr;
        int dodai = chuoilucdau.Trim().Length;

        chuoilucdau = chuoilucdau.Substring(dodai - chuoigiua.Trim().Length, chuoigiua.Trim().Length);
        string chuoiketqua = chuoidau + chuoilucdau;
        return chuoiketqua;

    }
}
